package org.dr.st_docker.springaop;

import org.dr.st_docker.springaop.service.LandlordService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        LandlordService landlord = (LandlordService) context.getBean("landlord", LandlordService.class);
        landlord.service();

    }
}
